cmake_minimum_required(VERSION 3.25)

# 软件信息
project(BM
VERSION 0.0.1
LANGUAGES CXX)

# main.cpp文件
set(MAIN_SRC ${CMAKE_SOURCE_DIR}/src/main.cpp)

# 头文件目录

include_directories(${CMAKE_SOURCE_DIR}/src/sql)

# 输出位置

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/release)
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/release)

# 判断平台
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
    message("编译环境：Linux")
    add_compile_definitions(LINUX)
endif()


add_executable(bm
    ${MAIN_SRC}
)

target_link_libraries(bm PRIVATE Bmsql)

add_subdirectory(src/sql/)
